﻿@model VehicleManagement.Models.CarInsure
@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script type="text/javascript">
    $(function () {
        $.post("/CarInfo/GetCarNumberList", {},
            function (data) {
                $("#CarNumber").empty();
                $.each(data, function () {
                    $("#CarNumber").append('<option>' + this + '</option>');
                });
                $("#CarNumber").val('@Model.CarNumber');
            });
    });
</script>
<div class="mas">
    <div class="toptitle">
        司机负责人管理平台
    </div>
    @*<div class="car"></div>*@
    @Html.Partial("_PartviewDriverManager")
    <div class="rightshow">
        @using (Html.BeginForm())
        {
            @Html.ValidationSummary(true)
            <fieldset>
                <legend></legend>
                <div class="box">
                    <div class="box-title">
                        <span>@Html.ActionLink("返回汽车保险列表", "Index")</span>
                    </div>
                    <div class="box-detail-nopic-edit">
                        <div class="box-detail1-linetype1 hide">
                            <span class="labeldisplay">@Html.LabelFor(model => model.CarInsureID):</span>
                            @Html.EditorFor(model => model.CarInsureID)@Html.ValidationMessageFor(model => model.CarInsureID)
                        </div>
                        <div class="box-detail1-linetype1">
                            <span class="labeldisplay">@Html.LabelFor(model => model.CarNumber):</span>
                            @Html.DropDownListFor(model => model.CarNumber, new SelectList(new[] { "车牌号" }, "车牌号"))
                            @Html.ValidationMessageFor(model => model.CarNumber)
                        </div>
                        <div class="box-detail1-linetype1">
                            <span class="labeldisplay">@Html.LabelFor(model => model.BegDate):</span>
                            @Html.EditorFor(model => model.BegDate)@Html.ValidationMessageFor(model => model.BegDate)
                        </div>
                        <div class="box-detail1-linetype1">
                            <span class="labeldisplay">@Html.LabelFor(model => model.EndDate):</span>
                            @Html.EditorFor(model => model.EndDate)@Html.ValidationMessageFor(model => model.EndDate)
                        </div>
                        <div class="box-detail1-linetype1">
                            <span class="labeldisplay">@Html.LabelFor(model => model.InsureAgent):</span>
                            @Html.EditorFor(model => model.InsureAgent)@Html.ValidationMessageFor(model => model.InsureAgent)
                        </div>
                        <div class="box-detail1-linetype1">
                            <span class="labeldisplay">@Html.LabelFor(model => model.InsureCom):</span>
                            @Html.EditorFor(model => model.InsureCom)@Html.ValidationMessageFor(model => model.InsureCom)
                        </div>
                        <div class="box-detail1-linetype1">
                            <span class="labeldisplay">@Html.LabelFor(model => model.InsureDate):</span>
                            @Html.EditorFor(model => model.InsureDate)@Html.ValidationMessageFor(model => model.InsureDate)
                        </div>
                        <div class="box-detail1-linetype1">
                            <span class="labeldisplay">@Html.LabelFor(model => model.Insuretype):</span>
                            @Html.EditorFor(model => model.Insuretype)@Html.ValidationMessageFor(model => model.Insuretype)
                        </div>
                        <div class="box-detail1-linetype1">
                            <span class="labeldisplay">@Html.LabelFor(model => model.InvoiceNo):</span>
                            @Html.EditorFor(model => model.InvoiceNo)@Html.ValidationMessageFor(model => model.InvoiceNo)
                        </div>
                        <div class="box-detail1-linetype1">
                            <span class="labeldisplay">@Html.LabelFor(model => model.Remark):</span>
                            @Html.TextAreaFor(model => model.Remark)
                        </div>
                        <input class="button" type="submit" value="修 改" />
                    </div>
                </div>
            </fieldset>
        }
    </div>
    <div class="clear">
    </div>
</div>
